home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus Special 18 / AMIGAplus Sonderheft 18 (1999)(ICP)(DE)[!].iso / PD / Anwendungen / FS1541-13 / disk.h < prev    next >
C/C++ Source or Header  |  1999-01-03  |  2KB  |  51 lines

  1.  
  2. /*
  3.  * FS1541 - basic disk interaction routines (header)
  4.  *
  5.  * Copyright (C) 1996 - 1998 Michael Krause
  6.  *
  7.  * This program is free software; you can redistribute it and/or modify
  8.  * it under the terms of the GNU General Public License as published by
  9.  * the Free Software Foundation; either version 2 of the License, or
  10.  * (at your option) any later version.
  11.  *
  12.  * This program is distributed in the hope that it will be useful,
  13.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15.  * GNU General Public License for more details.
  16.  *
  17.  * You should have received a copy of the GNU General Public License
  18.  * along with this program; if not, write to the Free Software
  19.  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  20.  */
  21.  
  22. #include <devices/trackdisk.h>
  23.  
  24. LONG InitDiskSS(STRPTR device, ULONG unit, ULONG flags);
  25. void QuitDiskSS(void);
  26.  
  27. void ResetDisk(void);
  28. BOOL LoadDisk(void);
  29. void MotorOff(void);
  30.  
  31. int SectorsOnTrack(BYTE track);
  32. UWORD Block2TS(UWORD blk);
  33.  
  34. struct DataBlock *getblock_ts(UBYTE t, UBYTE s);
  35. struct DataBlock *putblock_ts(UBYTE t, UBYTE s, APTR data);
  36. struct DataBlock *getputblock(ULONG blk, BOOL write);
  37.  
  38. extern BOOL autoscan;
  39. extern LONG numsofterrors;
  40. extern struct IOExtTD *diskreq;
  41. extern int wprotected, hardwprot;
  42. extern struct MsgPort *dpsender;
  43. extern ULONG chgcount;
  44.  
  45.  
  46. #define D64_SIZE 683*256        /* 174848 */
  47.  
  48. #define SEC_NOT_LOADED 0
  49. #define SEC_OK 1
  50. #define SEC_ERROR -1
  51.